package com.web.common.dataDictionary.PO;

import java.util.*;
import com.css.sword.kernel.base.annotation.*;
import com.css.sword.kernel.base.dataElement.*;
import com.css.sword.kernel.base.exception.SwordBaseCheckedException;

import com.web.common.dataDictionary.DE.DE_ID;
import com.web.common.dataDictionary.DE.DE_WEBUSERNAME;
import com.web.common.dataDictionary.DE.DE_ZP_TITLE;
import com.web.common.dataDictionary.DE.DE_ZP_SHOPNAME;
import com.web.common.dataDictionary.DE.DE_ZP_SFNEW;
import com.web.common.dataDictionary.DE.DE_ZP_OPPTIME;
import com.web.common.dataDictionary.DE.DE_ZP_LXDH;
import com.web.common.dataDictionary.DE.DE_ZP_LXDHSFKY;
import com.web.common.dataDictionary.DE.DE_ZP_FBSJ;
import com.web.common.dataDictionary.DE.DE_ZP_SHZT;
import com.web.common.dataDictionary.DE.DE_ZP_SHSJ;
import com.web.common.dataDictionary.DE.DE_WEBPATH;
import com.web.common.dataDictionary.DE.DE_WEBDOMAIN;
import com.web.common.dataDictionary.DE.DE_ZP_LOGO;


/**
 * 商户招聘表
 */
@PersistObject
public class TabRecruitPO extends AbsPersistObject {
	//private static final long serialVersionUID = 5485208080619897096L;
	private static final long serialVersionUID = 1L;
	private static final Map<String, Integer> fieldIndex = new HashMap<String, Integer>(14);
	private static final BitSet HAS_DEFAULT_VALUE = new BitSet(14);
	
	static{
		HAS_DEFAULT_VALUE.set(7, true);
		fieldIndex.put("id",0);fieldIndex.put("webusername",1);fieldIndex.put("zpTitle",2);fieldIndex.put("zpShopname",3);fieldIndex.put("zpSfnew",4);fieldIndex.put("zpOpptime",5);fieldIndex.put("zpLxdh",6);fieldIndex.put("zpLxdhsfky",7);fieldIndex.put("zpFbsj",8);fieldIndex.put("zpShzt",9);fieldIndex.put("zpShsj",10);fieldIndex.put("webpath",11);fieldIndex.put("webdomain",12);fieldIndex.put("zpLogo",13);
	}
	
	/**
	 * 物理表名
	 */
	public static final String TABLE_NAME = "tab_recruit";

	/**
	 * 主键id
	 */
	private DE_ID id = DE_ID.getTemplateInstance();

	/**
	 * web用户名
	 */
	private DE_WEBUSERNAME webusername = DE_WEBUSERNAME.getTemplateInstance();

	/**
	 * 招聘title
	 */
	private DE_ZP_TITLE zpTitle = DE_ZP_TITLE.getTemplateInstance();

	/**
	 * 招聘店铺名
	 */
	private DE_ZP_SHOPNAME zpShopname = DE_ZP_SHOPNAME.getTemplateInstance();

	/**
	 * 招聘是否new
	 */
	private DE_ZP_SFNEW zpSfnew = DE_ZP_SFNEW.getTemplateInstance();

	/**
	 * 招聘操作时间
	 */
	private DE_ZP_OPPTIME zpOpptime = DE_ZP_OPPTIME.getTemplateInstance();

	/**
	 * 招聘联系电话
	 */
	private DE_ZP_LXDH zpLxdh = DE_ZP_LXDH.getTemplateInstance();

	/**
	 * 招聘联系电话是否可用
	 */
	private DE_ZP_LXDHSFKY zpLxdhsfky = DE_ZP_LXDHSFKY.getTemplateInstance();

	/**
	 * 招聘发布时间
	 */
	private DE_ZP_FBSJ zpFbsj = DE_ZP_FBSJ.getTemplateInstance();

	/**
	 * 招聘审核状态
	 */
	private DE_ZP_SHZT zpShzt = DE_ZP_SHZT.getTemplateInstance();

	/**
	 * 招聘审核时间
	 */
	private DE_ZP_SHSJ zpShsj = DE_ZP_SHSJ.getTemplateInstance();

	/**
	 * 招聘网页的访问路径
	 */
	private DE_WEBPATH webpath = DE_WEBPATH.getTemplateInstance();

	/**
	 * 招聘网页的主路径
	 */
	private DE_WEBDOMAIN webdomain = DE_WEBDOMAIN.getTemplateInstance();

	/**
	 * 招聘logo
	 */
	private DE_ZP_LOGO zpLogo = DE_ZP_LOGO.getTemplateInstance();


	public TabRecruitPO(){
		this.insertState = new BitSet(14);
		this.updateState = new BitSet(14);
	}

	
	/**
	 * 获取 "主键id" 值
	 */	
	public DE_ID getId(){
		return  id;
	}
	
	/**
	 * 设置 "主键id" 值
	 */
	public void setId(DE_ID id) {
		if(id == null){
			id= DE_ID.getTemplateInstance();
		}
		recordChangeFlag(0);
		this.id = id;
	}
	
	/**
	 * 获取 "web用户名" 值
	 */	
	public DE_WEBUSERNAME getWebusername(){
		return  webusername;
	}
	
	/**
	 * 设置 "web用户名" 值
	 */
	public void setWebusername(DE_WEBUSERNAME webusername) {
		if(webusername == null){
			webusername= DE_WEBUSERNAME.getTemplateInstance();
		}
		recordChangeFlag(1);
		this.webusername = webusername;
	}
	
	/**
	 * 获取 "招聘title" 值
	 */	
	public DE_ZP_TITLE getZpTitle(){
		return  zpTitle;
	}
	
	/**
	 * 设置 "招聘title" 值
	 */
	public void setZpTitle(DE_ZP_TITLE zpTitle) {
		if(zpTitle == null){
			zpTitle= DE_ZP_TITLE.getTemplateInstance();
		}
		recordChangeFlag(2);
		this.zpTitle = zpTitle;
	}
	
	/**
	 * 获取 "招聘店铺名" 值
	 */	
	public DE_ZP_SHOPNAME getZpShopname(){
		return  zpShopname;
	}
	
	/**
	 * 设置 "招聘店铺名" 值
	 */
	public void setZpShopname(DE_ZP_SHOPNAME zpShopname) {
		if(zpShopname == null){
			zpShopname= DE_ZP_SHOPNAME.getTemplateInstance();
		}
		recordChangeFlag(3);
		this.zpShopname = zpShopname;
	}
	
	/**
	 * 获取 "招聘是否new" 值
	 */	
	public DE_ZP_SFNEW getZpSfnew(){
		return  zpSfnew;
	}
	
	/**
	 * 设置 "招聘是否new" 值
	 */
	public void setZpSfnew(DE_ZP_SFNEW zpSfnew) {
		if(zpSfnew == null){
			zpSfnew= DE_ZP_SFNEW.getTemplateInstance();
		}
		recordChangeFlag(4);
		this.zpSfnew = zpSfnew;
	}
	
	/**
	 * 获取 "招聘操作时间" 值
	 */	
	public DE_ZP_OPPTIME getZpOpptime(){
		return  zpOpptime;
	}
	
	/**
	 * 设置 "招聘操作时间" 值
	 */
	public void setZpOpptime(DE_ZP_OPPTIME zpOpptime) {
		if(zpOpptime == null){
			zpOpptime= DE_ZP_OPPTIME.getTemplateInstance();
		}
		recordChangeFlag(5);
		this.zpOpptime = zpOpptime;
	}
	
	/**
	 * 获取 "招聘联系电话" 值
	 */	
	public DE_ZP_LXDH getZpLxdh(){
		return  zpLxdh;
	}
	
	/**
	 * 设置 "招聘联系电话" 值
	 */
	public void setZpLxdh(DE_ZP_LXDH zpLxdh) {
		if(zpLxdh == null){
			zpLxdh= DE_ZP_LXDH.getTemplateInstance();
		}
		recordChangeFlag(6);
		this.zpLxdh = zpLxdh;
	}
	
	/**
	 * 获取 "招聘联系电话是否可用" 值
	 */	
	public DE_ZP_LXDHSFKY getZpLxdhsfky(){
		return  zpLxdhsfky;
	}
	
	/**
	 * 设置 "招聘联系电话是否可用" 值
	 */
	public void setZpLxdhsfky(DE_ZP_LXDHSFKY zpLxdhsfky) {
		if(zpLxdhsfky == null){
			zpLxdhsfky= DE_ZP_LXDHSFKY.getTemplateInstance();
		}
		recordChangeFlag(7);
		this.zpLxdhsfky = zpLxdhsfky;
	}
	
	/**
	 * 获取 "招聘发布时间" 值
	 */	
	public DE_ZP_FBSJ getZpFbsj(){
		return  zpFbsj;
	}
	
	/**
	 * 设置 "招聘发布时间" 值
	 */
	public void setZpFbsj(DE_ZP_FBSJ zpFbsj) {
		if(zpFbsj == null){
			zpFbsj= DE_ZP_FBSJ.getTemplateInstance();
		}
		recordChangeFlag(8);
		this.zpFbsj = zpFbsj;
	}
	
	/**
	 * 获取 "招聘审核状态" 值
	 */	
	public DE_ZP_SHZT getZpShzt(){
		return  zpShzt;
	}
	
	/**
	 * 设置 "招聘审核状态" 值
	 */
	public void setZpShzt(DE_ZP_SHZT zpShzt) {
		if(zpShzt == null){
			zpShzt= DE_ZP_SHZT.getTemplateInstance();
		}
		recordChangeFlag(9);
		this.zpShzt = zpShzt;
	}
	
	/**
	 * 获取 "招聘审核时间" 值
	 */	
	public DE_ZP_SHSJ getZpShsj(){
		return  zpShsj;
	}
	
	/**
	 * 设置 "招聘审核时间" 值
	 */
	public void setZpShsj(DE_ZP_SHSJ zpShsj) {
		if(zpShsj == null){
			zpShsj= DE_ZP_SHSJ.getTemplateInstance();
		}
		recordChangeFlag(10);
		this.zpShsj = zpShsj;
	}
	
	/**
	 * 获取 "招聘网页的访问路径" 值
	 */	
	public DE_WEBPATH getWebpath(){
		return  webpath;
	}
	
	/**
	 * 设置 "招聘网页的访问路径" 值
	 */
	public void setWebpath(DE_WEBPATH webpath) {
		if(webpath == null){
			webpath= DE_WEBPATH.getTemplateInstance();
		}
		recordChangeFlag(11);
		this.webpath = webpath;
	}
	
	/**
	 * 获取 "招聘网页的主路径" 值
	 */	
	public DE_WEBDOMAIN getWebdomain(){
		return  webdomain;
	}
	
	/**
	 * 设置 "招聘网页的主路径" 值
	 */
	public void setWebdomain(DE_WEBDOMAIN webdomain) {
		if(webdomain == null){
			webdomain= DE_WEBDOMAIN.getTemplateInstance();
		}
		recordChangeFlag(12);
		this.webdomain = webdomain;
	}
	
	/**
	 * 获取 "招聘logo" 值
	 */	
	public DE_ZP_LOGO getZpLogo(){
		return  zpLogo;
	}
	
	/**
	 * 设置 "招聘logo" 值
	 */
	public void setZpLogo(DE_ZP_LOGO zpLogo) {
		if(zpLogo == null){
			zpLogo= DE_ZP_LOGO.getTemplateInstance();
		}
		recordChangeFlag(13);
		this.zpLogo = zpLogo;
	}


	@Override
	public BaseDataElement<?>[] fields(){
		return new BaseDataElement<?>[] {id,webusername,zpTitle,zpShopname,zpSfnew,zpOpptime,zpLxdh,zpLxdhsfky,zpFbsj,zpShzt,zpShsj,webpath,webdomain,zpLogo};
	}
	
	@Override
	public String[] fieldNames() {
		return new String[]{"id","webusername","zpTitle","zpShopname","zpSfnew","zpOpptime","zpLxdh","zpLxdhsfky","zpFbsj","zpShzt","zpShsj","webpath","webdomain","zpLogo"};
	}
	
	@Override
	public BaseDataElement<?> getFieldValue(String fieldName)  {
		final Integer index = fieldIndex.get(fieldName);
		if (index == null) {
			throw new IllegalArgumentException("PO对象中没有" + fieldName + "字段");
		}
		switch (index) {
		case 0 : return id;
		case 1 : return webusername;
		case 2 : return zpTitle;
		case 3 : return zpShopname;
		case 4 : return zpSfnew;
		case 5 : return zpOpptime;
		case 6 : return zpLxdh;
		case 7 : return zpLxdhsfky;
		case 8 : return zpFbsj;
		case 9 : return zpShzt;
		case 10 : return zpShsj;
		case 11 : return webpath;
		case 12 : return webdomain;
		case 13 : return zpLogo;
 
		default:
			throw new IllegalArgumentException("PO对象中没有" + fieldName + "字段");
		}
	}
	
	@Override
	public TabRecruitPO setFieldValue(String fieldName, Object fieldValue) throws SwordBaseCheckedException {
		if (fieldValue != null && !(fieldValue instanceof BaseDataElement<?>)) {
			throw new SwordBaseCheckedException("字段值类型不是DataElelement子类型");
		}

		final Integer index = fieldIndex.get(fieldName);
		if (index == null) {
			throw new SwordBaseCheckedException("PO对象中没有" + fieldName + "字段");
		}

		switch (index) {

				case 0 : {
					if (fieldValue == null) {
						setId(null);
					} else {
						setId((DE_ID) fieldValue);
					}
					return this;
				}
				
				case 1 : {
					if (fieldValue == null) {
						setWebusername(null);
					} else {
						setWebusername((DE_WEBUSERNAME) fieldValue);
					}
					return this;
				}
				
				case 2 : {
					if (fieldValue == null) {
						setZpTitle(null);
					} else {
						setZpTitle((DE_ZP_TITLE) fieldValue);
					}
					return this;
				}
				
				case 3 : {
					if (fieldValue == null) {
						setZpShopname(null);
					} else {
						setZpShopname((DE_ZP_SHOPNAME) fieldValue);
					}
					return this;
				}
				
				case 4 : {
					if (fieldValue == null) {
						setZpSfnew(null);
					} else {
						setZpSfnew((DE_ZP_SFNEW) fieldValue);
					}
					return this;
				}
				
				case 5 : {
					if (fieldValue == null) {
						setZpOpptime(null);
					} else {
						setZpOpptime((DE_ZP_OPPTIME) fieldValue);
					}
					return this;
				}
				
				case 6 : {
					if (fieldValue == null) {
						setZpLxdh(null);
					} else {
						setZpLxdh((DE_ZP_LXDH) fieldValue);
					}
					return this;
				}
				
				case 7 : {
					if (fieldValue == null) {
						setZpLxdhsfky(null);
					} else {
						setZpLxdhsfky((DE_ZP_LXDHSFKY) fieldValue);
					}
					return this;
				}
				
				case 8 : {
					if (fieldValue == null) {
						setZpFbsj(null);
					} else {
						setZpFbsj((DE_ZP_FBSJ) fieldValue);
					}
					return this;
				}
				
				case 9 : {
					if (fieldValue == null) {
						setZpShzt(null);
					} else {
						setZpShzt((DE_ZP_SHZT) fieldValue);
					}
					return this;
				}
				
				case 10 : {
					if (fieldValue == null) {
						setZpShsj(null);
					} else {
						setZpShsj((DE_ZP_SHSJ) fieldValue);
					}
					return this;
				}
				
				case 11 : {
					if (fieldValue == null) {
						setWebpath(null);
					} else {
						setWebpath((DE_WEBPATH) fieldValue);
					}
					return this;
				}
				
				case 12 : {
					if (fieldValue == null) {
						setWebdomain(null);
					} else {
						setWebdomain((DE_WEBDOMAIN) fieldValue);
					}
					return this;
				}
				
				case 13 : {
					if (fieldValue == null) {
						setZpLogo(null);
					} else {
						setZpLogo((DE_ZP_LOGO) fieldValue);
					}
					return this;
				}
				
		default:
			throw new SwordBaseCheckedException("PO对象中没有" + fieldName + "字段");
		}
	
	}

	@Override
	protected TabRecruitPO clone() {
		TabRecruitPO t = new TabRecruitPO();
		
		t.setId(this.id);
		t.setWebusername(this.webusername);
		t.setZpTitle(this.zpTitle);
		t.setZpShopname(this.zpShopname);
		t.setZpSfnew(this.zpSfnew);
		t.setZpOpptime(this.zpOpptime);
		t.setZpLxdh(this.zpLxdh);
		t.setZpLxdhsfky(this.zpLxdhsfky);
		t.setZpFbsj(this.zpFbsj);
		t.setZpShzt(this.zpShzt);
		t.setZpShsj(this.zpShsj);
		t.setWebpath(this.webpath);
		t.setWebdomain(this.webdomain);
		t.setZpLogo(this.zpLogo);

		return t;
	}

	@Override
	public TabRecruitPO loadMap(Map<String, Object> dataMap) throws SwordBaseCheckedException {
		Object value = null;

		if(dataMap.containsKey("id")){
			value = dataMap.get("id");
			
			if (value == null) {
				this.setId(null);
			} else {
				if (value instanceof DE_ID) {
					this.setId((DE_ID) value);
				}
			    else {
					this.setId(new DE_ID(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("webusername")){
			value = dataMap.get("webusername");
			
			if (value == null) {
				this.setWebusername(null);
			} else {
				if (value instanceof DE_WEBUSERNAME) {
					this.setWebusername((DE_WEBUSERNAME) value);
				}
			    else {
					this.setWebusername(new DE_WEBUSERNAME(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("zpTitle")){
			value = dataMap.get("zpTitle");
			
			if (value == null) {
				this.setZpTitle(null);
			} else {
				if (value instanceof DE_ZP_TITLE) {
					this.setZpTitle((DE_ZP_TITLE) value);
				}
			    else {
					this.setZpTitle(new DE_ZP_TITLE(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("zpShopname")){
			value = dataMap.get("zpShopname");
			
			if (value == null) {
				this.setZpShopname(null);
			} else {
				if (value instanceof DE_ZP_SHOPNAME) {
					this.setZpShopname((DE_ZP_SHOPNAME) value);
				}
			    else {
					this.setZpShopname(new DE_ZP_SHOPNAME(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("zpSfnew")){
			value = dataMap.get("zpSfnew");
			
			if (value == null) {
				this.setZpSfnew(null);
			} else {
				if (value instanceof DE_ZP_SFNEW) {
					this.setZpSfnew((DE_ZP_SFNEW) value);
				}
			    else {
					this.setZpSfnew(new DE_ZP_SFNEW(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("zpOpptime")){
			value = dataMap.get("zpOpptime");
			
			if (value == null) {
				this.setZpOpptime(null);
			} else {
				if (value instanceof DE_ZP_OPPTIME) {
					this.setZpOpptime((DE_ZP_OPPTIME) value);
				}
				else if(value instanceof java.util.Date){
					this.setZpOpptime(new DE_ZP_OPPTIME((java.util.Date)value));
				}
			    else {
					this.setZpOpptime(new DE_ZP_OPPTIME(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("zpLxdh")){
			value = dataMap.get("zpLxdh");
			
			if (value == null) {
				this.setZpLxdh(null);
			} else {
				if (value instanceof DE_ZP_LXDH) {
					this.setZpLxdh((DE_ZP_LXDH) value);
				}
			    else {
					this.setZpLxdh(new DE_ZP_LXDH(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("zpLxdhsfky")){
			value = dataMap.get("zpLxdhsfky");
			
			if (value == null) {
				this.setZpLxdhsfky(null);
			} else {
				if (value instanceof DE_ZP_LXDHSFKY) {
					this.setZpLxdhsfky((DE_ZP_LXDHSFKY) value);
				}
			    else {
					this.setZpLxdhsfky(new DE_ZP_LXDHSFKY(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("zpFbsj")){
			value = dataMap.get("zpFbsj");
			
			if (value == null) {
				this.setZpFbsj(null);
			} else {
				if (value instanceof DE_ZP_FBSJ) {
					this.setZpFbsj((DE_ZP_FBSJ) value);
				}
				else if(value instanceof java.util.Date){
					this.setZpFbsj(new DE_ZP_FBSJ((java.util.Date)value));
				}
			    else {
					this.setZpFbsj(new DE_ZP_FBSJ(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("zpShzt")){
			value = dataMap.get("zpShzt");
			
			if (value == null) {
				this.setZpShzt(null);
			} else {
				if (value instanceof DE_ZP_SHZT) {
					this.setZpShzt((DE_ZP_SHZT) value);
				}
			    else {
					this.setZpShzt(new DE_ZP_SHZT(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("zpShsj")){
			value = dataMap.get("zpShsj");
			
			if (value == null) {
				this.setZpShsj(null);
			} else {
				if (value instanceof DE_ZP_SHSJ) {
					this.setZpShsj((DE_ZP_SHSJ) value);
				}
				else if(value instanceof java.util.Date){
					this.setZpShsj(new DE_ZP_SHSJ((java.util.Date)value));
				}
			    else {
					this.setZpShsj(new DE_ZP_SHSJ(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("webpath")){
			value = dataMap.get("webpath");
			
			if (value == null) {
				this.setWebpath(null);
			} else {
				if (value instanceof DE_WEBPATH) {
					this.setWebpath((DE_WEBPATH) value);
				}
			    else {
					this.setWebpath(new DE_WEBPATH(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("webdomain")){
			value = dataMap.get("webdomain");
			
			if (value == null) {
				this.setWebdomain(null);
			} else {
				if (value instanceof DE_WEBDOMAIN) {
					this.setWebdomain((DE_WEBDOMAIN) value);
				}
			    else {
					this.setWebdomain(new DE_WEBDOMAIN(value.toString()));
				}
			}
		}

		if(dataMap.containsKey("zpLogo")){
			value = dataMap.get("zpLogo");
			
			if (value == null) {
				this.setZpLogo(null);
			} else {
				if (value instanceof DE_ZP_LOGO) {
					this.setZpLogo((DE_ZP_LOGO) value);
				}
			    else {
					this.setZpLogo(new DE_ZP_LOGO(value.toString()));
				}
			}
		}

		return this;
	}
	
	@Override
	public Map<String,Object> toMap() {
		Map<String,Object> dataMap = new HashMap<String,Object>();

		dataMap.put("id", id);
		dataMap.put("webusername", webusername);
		dataMap.put("zpTitle", zpTitle);
		dataMap.put("zpShopname", zpShopname);
		dataMap.put("zpSfnew", zpSfnew);
		dataMap.put("zpOpptime", zpOpptime);
		dataMap.put("zpLxdh", zpLxdh);
		dataMap.put("zpLxdhsfky", zpLxdhsfky);
		dataMap.put("zpFbsj", zpFbsj);
		dataMap.put("zpShzt", zpShzt);
		dataMap.put("zpShsj", zpShsj);
		dataMap.put("webpath", webpath);
		dataMap.put("webdomain", webdomain);
		dataMap.put("zpLogo", zpLogo);
		
		return dataMap;
	}
	
	@Override
	public Map<String,Object> toMapWithDEValue() {
		Map<String,Object> dataMap = new HashMap<String,Object>();

		dataMap.put("id", (id==null?null:id.value));
		dataMap.put("webusername", (webusername==null?null:webusername.value));
		dataMap.put("zpTitle", (zpTitle==null?null:zpTitle.value));
		dataMap.put("zpShopname", (zpShopname==null?null:zpShopname.value));
		dataMap.put("zpSfnew", (zpSfnew==null?null:zpSfnew.value));
		dataMap.put("zpOpptime", (zpOpptime==null?null:zpOpptime.value));
		dataMap.put("zpLxdh", (zpLxdh==null?null:zpLxdh.value));
		dataMap.put("zpLxdhsfky", (zpLxdhsfky==null?null:zpLxdhsfky.value));
		dataMap.put("zpFbsj", (zpFbsj==null?null:zpFbsj.value));
		dataMap.put("zpShzt", (zpShzt==null?null:zpShzt.value));
		dataMap.put("zpShsj", (zpShsj==null?null:zpShsj.value));
		dataMap.put("webpath", (webpath==null?null:webpath.value));
		dataMap.put("webdomain", (webdomain==null?null:webdomain.value));
		dataMap.put("zpLogo", (zpLogo==null?null:zpLogo.value));
		
		return dataMap;
	}
	
	@Override
	public TabRecruitPO newInstance() {
		return new TabRecruitPO();
	}
	
	@Override
	public String getTableName(){
		return TABLE_NAME;
	}
	
	@Override
	public BaseDataElement<?>[] getPrimaryKey() {
		return new BaseDataElement<?>[]{id};
	}

	@Override
	public void checkNotNull(byte sqlType) throws SwordBaseCheckedException {
		StringBuilder errorMsg = new StringBuilder();
		// insert
		if (sqlType == 0) {
				//只校验不可为空但又没有默认值的字段
				if (id.value == null && !HAS_DEFAULT_VALUE.get(0)) {
					errorMsg.append("字段id不允许为空\n");
				}

		}
		// update
		else if (sqlType == 1) {
		if (updateState.get(0) && id.value == null) {
			errorMsg.append("字段id不允许为空\n");
		}

		}
		
		if (errorMsg.length() > 0) {
			errorMsg.setLength(errorMsg.length() - 1);
			throw new SwordBaseCheckedException(errorMsg.toString());
		}
	}

	@Override
	public void updateLrrq(DateDE lrrq) {
	}

	@Override
	public void updateXgrq(DateDE xgrq) {
	}

	@Override
	public String toString() {
		StringBuilder str = new StringBuilder();
		str.append("id:").append(id.value!=null?id:"").append(" ").append("webusername:").append(webusername.value!=null?webusername:"").append(" ").append("zpTitle:").append(zpTitle.value!=null?zpTitle:"").append(" ").append("zpShopname:").append(zpShopname.value!=null?zpShopname:"").append(" ").append("zpSfnew:").append(zpSfnew.value!=null?zpSfnew:"").append(" ").append("zpOpptime:").append(zpOpptime.value!=null?zpOpptime:"").append(" ").append("zpLxdh:").append(zpLxdh.value!=null?zpLxdh:"").append(" ").append("zpLxdhsfky:").append(zpLxdhsfky.value!=null?zpLxdhsfky:"").append(" ").append("zpFbsj:").append(zpFbsj.value!=null?zpFbsj:"").append(" ").append("zpShzt:").append(zpShzt.value!=null?zpShzt:"").append(" ").append("zpShsj:").append(zpShsj.value!=null?zpShsj:"").append(" ").append("webpath:").append(webpath.value!=null?webpath:"").append(" ").append("webdomain:").append(webdomain.value!=null?webdomain:"").append(" ").append("zpLogo:").append(zpLogo.value!=null?zpLogo:"").append(" ");
		return str.toString();
	}
	
}
